package com.example.demo3;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class RequestListener implements ApplicationListener<RequestEvent> {
    @Override
    public void onApplicationEvent(RequestEvent requestEvent) {
        System.out.println("监听到消息了,消息的内容是 = " + requestEvent.toString());
    }
}
